package com.sitech.portal.server.service;

import java.util.List;
import java.util.Map;

public interface ICalendarService {

	public List findCalendarEvents(String LOGIN_ID);

    /**
     * 修改任务计划
     * @param event
     * @param LOGIN_ID 
     */
    public void updateCalendarEvent(Map event, String LOGIN_ID) throws Exception;

    /**
     * 新增任务计划，返回新任务计划的id
     * @param event
     * @param LOGIN_ID
     * @return 
     */
    public String insertCalendarEvent(Map event, String LOGIN_ID);

    public void deleteCalendarEvent(String id, String LOGIN_ID);

    /**
     * 查找start_time在最近一段时间的Calendar事件，单位秒
     * @param seconds 时间段
     * @return 
     */
    public List findCalendarEventInRecentSeconds(Long seconds);
}
